package com.ysd.resourceusestatistics.dao;

import com.ysd.resourceusestatistics.model.Member;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

/**
 * IMbmberDao
 */
public interface IMemberDao extends JpaRepository<Member, Integer>, JpaSpecificationExecutor<Member> {

	@Query("select m from Member m where m.cardNo=:cardNo")
	Member getCardStatus(String cardNo);

	/* @Query("delete from Member m where m.id=:id")
	int deleteInBatch(Integer id); */

}